package com.mxx.common.netty.config;

import com.mxx.common.netty.NettyHttpServer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

/**
 * @Auther: Mr. Zeng
 * @Date: 2020/7/17 19:18
 * @Description: 加载Http服务类
 */
@Configuration
@Import(LoadNettyHttpComponent.class)
public class LoadNettyHttpServer {


    /**
     * http服务注入
     *
     * @return
     */
    @Bean
    public NettyHttpServer nettyHttpServer() {
        return new NettyHttpServer();
    }
}
